package cn.iocoder.yudao.module.hs.api.warehouse;

import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.hs.api.warehouse.dto.WarehouseRespDTO;
import cn.iocoder.yudao.module.hs.service.warehouse.WarehouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class WarehouseApiImpl implements WarehouseApi {

    @Resource
    private WarehouseService warehouseService;

    @Override
    public WarehouseRespDTO getWarehouse(Long id) {
        return BeanUtils.toBean(warehouseService.getWarehouse(id), WarehouseRespDTO.class);
    }
}
